Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pub/Sub: update docstrings for client kwargs and fix return types uris #9037

Merged
merged 6 commits into from
Aug 18, 2019

Conversation

anguillanneuf
Copy link
Contributor

@anguillanneuf anguillanneuf commented Aug 16, 2019

Show examples of how to create

  • publisher client with optional batch settings, retry settings, regional endpoints
  • subscriber client with regional endpoints

Fix return types for

  • publish(), from_service_account_file(), list_topics(), list_topic_subscriptions()
  • subscribe(), from_service_account_file(), list_subscriptions(), list_snapshots()

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 16, 2019
@plamut plamut added type: docs Improvement to the documentation for an API. api: pubsub Issues related to the Pub/Sub API. labels Aug 16, 2019
Copy link
Contributor

@plamut plamut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to mention client_config kwarg in subscriber client's docstring as well for consistency?

Apart of that it looks good, just please fix some redundant whitespace in the docstrings to make the linter happy.

@anguillanneuf
Copy link
Contributor Author

Thanks @plamut! Unlike publish with retry settings, for subscriber client, we don't expose retry settings in client_config. If you look closely, client_config in the GAPIC subscriber client is actually in a deprecated state.

@anguillanneuf anguillanneuf changed the title Pub/Sub: update kwargs documentation for publisher and subscriber client Pub/Sub: update docstrings Aug 16, 2019
@anguillanneuf anguillanneuf changed the title Pub/Sub: update docstrings Pub/Sub: update docstrings for client kwargs and fix return types uris Aug 16, 2019
Copy link
Contributor

@plamut plamut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, and thanks for the additional cleanup.

@plamut plamut merged commit 8998983 into master Aug 18, 2019
@anguillanneuf anguillanneuf deleted the pubsub_docs branch August 19, 2019 17:57
emar-kar pushed a commit to MaxxleLLC/google-cloud-python that referenced this pull request Sep 18, 2019
googleapis#9037)

* Update kwargs docs

* lint

* Fix return object type

* Put back changes in setup.cfg and noxfile.py

* fix no new line

* fix various return types uris
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: pubsub Issues related to the Pub/Sub API. cla: yes This human has signed the Contributor License Agreement. type: docs Improvement to the documentation for an API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants